﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Materias.aspx.cs" Inherits="UI.Web.Materias" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="bodyContentPlaceHolder" runat="server">
 <link id="cssGrid" rel="stylesheet" type="text/css" href="css/gridCSS.css"/> 
 <link id="Link1" rel="stylesheet" type="text/css" href="css/MainStyle.css"/> 
 
    <asp:GridView ID="gvMaterias" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" onselectedindexchanged="gvMaterias_SelectedIndexChanged"
         CssClass="table" AllowPaging="True" 
         PageSize="12">
        <FooterStyle CssClass="FooterStyle" />  
        <PagerStyle CssClass="gridpager" />
        <RowStyle CssClass="RowStyle" /> 
        <HeaderStyle CssClass="HeaderStyle" /> 
        <AlternatingRowStyle CssClass="AlternateRowStyle" />
        
         <Columns>
         <asp:BoundField Headertext="Id" DataField="Id" />
        <asp:BoundField Headertext="Id Plan" DataField="idplan" />
        <asp:BoundField Headertext="Descripcion" DataField="descripcion"/>
        <asp:BoundField Headertext="Horas Semanales" DataField="hssemanales" />
        <asp:BoundField Headertext="Horas Totales" DataField="hstotales" />
        <asp:CommandField HeaderText="Seleccionar" ShowSelectButton="true" />
        </Columns>
        
    </asp:GridView>
    
        <asp:Panel ID="Panel1" runat="server" Visible="False">
                <br />
                <asp:Label ID="lblIdPlan" runat="server" Text="Id Plan: "/>
                <asp:TextBox ID="txtIdPlan" runat="server"/>
      
                <asp:Label ID="lblDescripcion" runat="server" Text="Descripcion: "/>
                <asp:TextBox ID="txtDescripcion" runat="server"/>
    
                <asp:Label ID="lblHorasSemanales" runat="server" Text="Horas Semanales: "/>
                <asp:TextBox ID="txtHorasSemanales" runat="server"/>
   
                <asp:Label ID="lblHorasTotales" runat="server" Text="Horas Totales: "/>
                <asp:TextBox ID="txtHorasTotales" runat="server"/>
                
                

                
        <asp:Panel ID="formActionsPanel" runat="server">
                <br />
                <asp:Button ID="btnAceptar" runat="server" CssClass="buttonAceptar" 
                    Text="Aceptar" onclick="btnAceptar_Click"  />
                <asp:Button ID="btnCancelar" runat="server" CssClass="buttonEliminar" Text="Cancelar"
                    onclick="btnCancelar_Click"  />
                </asp:Panel>
        </asp:Panel>
        
               <asp:Panel ID="gridActionsMaterias" runat="server">
               <br />
                <asp:Button ID="btnNuevo" runat="server" CssClass="button" Text="Nuevo" 
                       onclick="btnNuevo_Click"  />
                <asp:Button ID="btnEditar" runat="server" CssClass="button" Text="Editar" 
                       onclick="btnEditar_Click"  />
                <asp:Button ID="btnEliminar" runat="server" CssClass="buttonEliminar" Text="Eliminar"
                       onclick="btnEliminar_Click"  />
               </asp:Panel>
</asp:Content>
